package com.zzz.poker;

import com.zzz.poker.netty.configuration.NettyConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @BelongsProject: share
 * @BelongsPackage: com.zzz.poker
 * @Author: zwq
 * @CreateTime: 2025-05-07  19:50
 * @Description: TODO
 * @Version: 1.0
 */
@SpringBootApplication
@EnableFeignClients("com.zzz.poker.feign") // 扫描Feign客户端所在的包
@MapperScan("com.zzz.poker.mapper")
public class PokerApplicationStart {

    public static void main(String[] args){
        ConfigurableApplicationContext context = SpringApplication.run(PokerApplicationStart.class, args);
        NettyConfig nettyConfig = context.getBean(NettyConfig.class);
        nettyConfig.start();
    }
}
